package model;

import java.util.Date;

import web.annotation.Column;
import web.annotation.Entity;
import web.annotation.Key;

@Entity
public class User {
	@Key
	private Integer id;
	@Column("user_name")
	private String username;
	private String password;
	private Date addtime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	@Override
	public String toString() {
		return "[\"" + id + "\",\"" + username + "\",\"" + password + "\",\"" + addtime +"\",\"<a href=\\\"javascript:window.location.href='userController.del.do?id=" + id + "'\\\" >del</a>\"]";
	}
	
}
